package com.ad.payload.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author:dxgong
 * @日期 2021/3/21 15:53
 * @注释
 */
@Data
public class LoginDto {

    /**
     * 微信openId
     * */
//    @NotNull(message = "openId不能为空!")
    private String openId;
    private String sessionKey;
    private String nickName;

    /**
     * 微信unionId
     * */
//    @NotNull(message = "unionId不能为空")
    private String unionId;
    private String sex;
    private String city;
    private String province;
    private String country;
    private String img;
    /**
     * 0注册使用 1小程序登录使用
     * */
    private Integer type;

    /**
     * 小程序登录返回code
     * */
    //@NotNull(message = "登录code不能为空")
    private String code;
}
